package com.intramirror.product.service.impl;

import com.intramirror.product.entity.SpuAggregateLog;
import com.intramirror.product.entity.SpuOperateLog;
import com.intramirror.product.mapper.SpuAggregateLogMapper;
import com.intramirror.product.mapper.SpuOperateLogMapper;
import com.intramirror.product.service.ISpuLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created on 2018/4/28.
 * @author 123
 */
@Service
public class SpuLogServiceImpl implements ISpuLogService {

    @Autowired
    SpuOperateLogMapper spuOperateLogMapper;

    @Autowired
    SpuAggregateLogMapper spuAggregateLogMapper;

    @Override
    public void addSpuAggregateLog(SpuAggregateLog log) {
        spuAggregateLogMapper.insertSelective(log);
    }

    @Override
    public void addSpuOperateLog(SpuOperateLog log) {
        spuOperateLogMapper.addSpuOperateLog(log);
    }

}
